package com.ruirenyun.util.common;

import com.ruirenyun.entity.base.resp.CommonRespVo;
import com.ruirenyun.entity.constant.SYS;

/**
 * @author Deng Ye
 * @version 1.0
 * @date 2020/11/23
 * @description
 * @modifiedBy
 */
public class RespUtil {
    public static CommonRespVo fromSys(SYS s) {
        return CommonRespVo.other(s.name(), s.getValue());
    }

    public static CommonRespVo fromSys(SYS s, Object data) {
        return CommonRespVo.other(s.name(), s.getValue(), data);
    }
}
